<template>
  <img @click="greet" alt="Vue logo" src="./assets/logo.png" />
  <HelloWorld msg="Welcome to Your Vue.js App" />
  <Test1 />
</template>

<script>
import HelloWorld from "./components/HelloWorld.vue";
import Test1 from "./components/Test1.vue";

export default {
  name: "App",
  components: {
    HelloWorld,Test1
  },
  methods: {
    greet(event) {
      // `methods` 内部的 `this` 指向当前活动实例  http://localhost:80/   https://localhost:443/  
      alert('Hello ' + this.name + '!')
      // `event` 是原生 DOM event
      if (event) {
        alert(event.target.tagName)
      }
    }
  }
};
</script>

<style>
#app11111 {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
